package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

/**
 * Created by admin on 2019/8/13.
 */
public interface IStrategyCommentService {
    /**
     * 保存或修改评论
     *
     * @param comment
     */
    void saveOrUpdate(StrategyComment comment);

    /**
     * 评论分页
     *
     * @param qo
     * @return
     */
    Page query(StrategyCommentQuery qo);

    /**
     * 点赞
     *
     * @param toid
     * @param fromid
     */
    void commentThumbUp(String toid, Long fromid);
}
